<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePointCardQueueTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('point_card_queue', function (Blueprint $table) {
            $table->increments('id')->comment('积分卡排单表');
            $table->integer('card_id')->comment('积分卡id');
            $table->integer('user_id')->comment('用户id');
            $table->integer('status')->comment('0-排单中，1-等待激活，2-已激活，3-未激活');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
